var JiaShu = new Vue({

    el : '#Jiashulist',
    data :{
        renyuanId : $("#renyuanid").val(),
        jiashu : {},
        jiashulist : [],
        jingshangleixinglist : [],
        guanxilist : [],

        editFlag : 0,					// 0:新增，1：修改
        show : false,					// 显示列表是否有数据


    },
    created : function() {

        this.findVaild();


    },
    methods : {


        findVaild: function(){
            var _this = this;
            layer.open({type:3});
            $.post("../jingshangqingkuang/find_vaild_by_renyuanid",{
                renyuanId : _this.renyuanId,
                rdm : Math.random()
            },function(ppData){
                layer.closeAll("loading");
                if (ppData != null){

                        if(ppData.result == "1"){

                            var data = ppData.resultContent;
                            if(data.length > 0){
                                _this.show = true;
                                _this.jiashulist = data;
                            }else {
                                _this.show = false;
                            }


                        }else{
                            layer.alert(ppData.message);
                        }
                }

            },"json");
        },







    },
    watch :{
        //监控分页情况，刷新列表
        pageIndex : function(){

            this.findVaild();
        }
    }

});
